package com.artnology.independence.model.relationships;

import com.artnology.independence.model.DVGraphModel;
import com.artnology.independence.model.DVType;


public abstract class DVAbstractTypeRelationship extends DVReference {	
	

	private Boolean crossPackageBorder = null;

	public DVAbstractTypeRelationship(String name, DVGraphModel model, DVType referencedNode, DVType referenceFromType) {
		super(name, model, referencedNode, referenceFromType);
	}

	

	
	public boolean crossesPackageBorder() {
		if (crossPackageBorder == null) {
			crossPackageBorder = new Boolean(!((DVType) this.getReferenceFromNode()).getPackage().equals(((DVType) this.getReferencedNode()).getPackage()));
		}
		return crossPackageBorder;
	}
	

	
	
}